fix android crash when pausing or resuming video on APIs lower than 24.#2029
fix android crash when pausing or resuming video on APIs lower than 24.#2029mklim merged 1 commit intoflutter:masterfrom juliocbcotta:plugin/camera_crash
Conversation
mklim
left a comment
There was a problem hiding this comment.
Thanks for the fix! LGTM. It's unfortunate but I don't think we could add a meaningful test for this as-is since it depends on a specific Android version and we don't have working JUnit tests in the plugins.
I filed flutter/flutter#39499 to try and avoid errors like this in the future. @bparrishMines this is something to keep in mind with the refactor, I think ideally we'd probably want better behavior here instead of just failing to pause and resume.
I think we can add a test, but it will require to encapsulate the call to |
…4. (flutter#2029) This PR fixes a crash when pause/resume methods are called in APIs lower than 24 on Android.
…4. (flutter#2029) This PR fixes a crash when pause/resume methods are called in APIs lower than 24 on Android.
…4. (flutter#2029) This PR fixes a crash when pause/resume methods are called in APIs lower than 24 on Android.
Description
This PR fixes a crash when pause/resume methods are called in APIs lower than 24 on Android.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?